package cn.dada.dadarecipes.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {
    THROW_ERR0R(9999,"未知异常"),

    DATA_NOT_FIND(1111, "参数错误"),
    DATE_ERROR(1112, "日期参数错误"),
    ACTIVITY_NOT_FIND(1113, "活动不存在"),
    COUPON_NOT_FIND(1114, "优惠券不存在"),

    OPERATION_SUCCESS(2000, "操作成功"),
    OPERATION_FAILED(2001, "操作失败"),
    VALIDATED_ERROR(2002,"参数校验失败"),

    PASSWORD_STRENGTH_ERROR(3009,"密码不符合强度要求"),
    USERNAME_ERROR(3000, "用户名错误"),
    PASSWORD_ERROR(3001, "密码错误"),
    USERNAME_EXIST(3002, "用户名被占用"),
    NOT_LOGIN(3003, "未登录"),
    REG_FAILED(3004, "注册失败"),
    USER_NOT_EXIST(3005, "用户不存在"),
    PASSWORD_RESET_SUCCESS(3006, "密码重置成功"),
    PASSWORD_RESET_FAILED(3007, "密码重置失败"),
    PHONE_EXIST(3008, "手机号被占用"),
    USERNAME_OR_PASSWORD_ERROR(3100, "用户名或密码错误"),
    ALREADY_LOGGED(3101, "已登录"),
    CAPTCHA_ERROR(3102, "验证码错误"),
    INVALID_PHONE_NUMBER(3103, "无效手机号"),
    ARTICLE_NOT_EXIST(4000, "文章不存在"),
    AUDIT_NOT_EXIST(4001, "审核表不存在"),
    ARTICLE_REASON_NOT_EMPTY(4002, "驳回理由不能为空"),
    AUDIT_ALREADY_PASS(4003, "审核已经通过!"),
    ARTICLE_ALREADY_REJECT(4004, "审核已经驳回!"),
    ARTICLE_NOT_EMPTY(4005, "文章内容不能为空"),
    FAVORITES_IS_EMPTY(4006, "收藏表为空"),
    FAVORITE_ALREADY_EXIST(4007, "收藏已经存在"),
    COMMENT_NOT_EXIST(4008, "评论不存在"),
    COMMENT_DEL_NOT_AUTHORIZED(4009, "评论无权删除"),
    THUMBS_UP_FAILED(4010, "点赞失败"),
    THUMBS_UP_CANCEL_FAILED(4011, "取消点赞失败"),

    CART_IS_EMPTY(5000,"购物车为空" ),
    PRODUCT_NOT_ENOUGH(5001, "商品库存不足"),

    SHOP_NAME_REPEAT(6000, "店铺名称重复"),
    ;
    private Integer code;
    private String msg;
}
